<script type="text/javascript">
   jQuery(document).ready(function(){
   // binds form submission and fields to the validation engine
   jQuery("#MascotaInsertarForm").validationEngine();
});
 </script>
 <div class="grid_12">
                  <div class="box">
                     <div class="header">
                        <?php echo $this->Html->image('icons/packs/fugue/16x16/ui-text-field-format.png');?>
                        <h3>Registro de Mascotas</h3>
                        <span></span>
                     </div>
            <?php echo $this->Form->create('Mascota'); ?>
            <div class="content">
                           <div class="_50">
                              <label>Nombre de la Mascota</label>
                              <p>
                                 <?php echo $this->Form->text('nombre', array('class'=>"validate[required]  input-text")); ?>
                              </p>
                           </div>
                           <div class="_50">
                              <label>Numero de Tatuaje</label>
                              <p>
                                 <?php echo $this->Form->text('num_tatuaje'); ?>
                              </p>
                           </div>
                           <div class="_50">
                              <label>Fecha Nacimiento</label>
                              <p>
                                 <?php echo $this->Form->date('fecha_nacimiento',array('id'=>'date')); ?>
                              </p>
                           </div>
                           <div class="_50">
                              <label>Color (Se&ntilde;as o Marca)</label>
                              <p>
                                 <?php echo $this->Form->text('color'); ?>
                              </p>
                           </div>
                            <div class="_50">
                              <label>Raza</label>
                              <p>
                                 <?php echo $this->Form->select('raza_id', $dcr); ?>
                              </p>
                           </div>
                            <div class="_50">
                              <label>Sexo</label>
                              <?php $dcs=array('macho'=>'Macho', 'hembra'=>'Hembra'); ?>
                              <p>
                                <?php echo $this->Form->select('sexo', $dcs); ?>
                              </p>
                           </div>
                            <div class="_100">
                              <label>Propietario</label>
                              <p>
                                 <?php echo $this->Form->select('propietario_id', $dcp); ?>
                              </p>
                           </div>
                           <div class="_50">
                              <label>Padre</label>
                              <p>
                                 <?php echo $this->Form->select('reproductor_id', $dcm); ?>
                              </p>
                           </div>
                           <div class="_50">
                              <label>Madre</label>
                              <p>
                                <?php echo $this->Form->select('reproductora_id', $dcm); ?>
                              </p>
                           </div>
                           <div class="_50">
                              <label>Origen</label>
                              <p>
                                 <?php echo $this->Form->text('origen'); ?>
                              </p>
                           </div>
                           <div class="_50">
                              <label>Numero de Chip</label>
                              <p>
                                 <?php echo $this->Form->text('chip'); ?>
                              </p>
                           </div>
                        <div class="actions">
                           <div class="actions-left">
                              <input type="reset" value="Limpiar" />
                           </div>
                           <div class="actions-right">
                              <?php $options=array('Value'=>'Registrar')?>
                              <?php echo $this->Form->end($options);?>                             

                           </div>
                        </div>
                     </div>
   </div>